<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<style>
			body{
				/* background-image: url(img/eom.jpg); */
				/* background-repeat: no-repeat;*/
				/* 背景随着页面滚动:scroll,默认值
				   页面滚动而固定背景：fixed
				*/
			   /* background-attachment: fixed; */
			   background-position: 20%;
			   /* 复合写法：
				background:color img repeat attacment positition/size
				*/
			   background:gainsboro url(img/eom.jpg)no-repeat fixed center/100% 100%;
			}
			.box{
				width: 1000px;
				height: 1200px;
				border: 1px solid lavender;
				/* transparent:透明色 */
				background-color: lavenderblush;/* rgba(366,3,57,.8); */
				/* 背景图片重复显示:repeat
				背景图片不重复显示:on-repeat */
				background-image: url(img/eom.jpg);
				background-repeat: repeat-y;/* x:横向重复,y:纵向重复. */
				font-size: 36px;
			}
			
		</style>
	</head>
	<body>
		<div class="box">
			这是盒子内容
		</div>
	</body>
</html>
